﻿using System;
using System.Collections.Generic;

using Quiziqal.Domain;

namespace Quiziqal.Application.Services
{
    public class QuiziqalService : IQuiziqalService
    {
        IQuizRepository repository;

        public QuiziqalService(IQuizRepository repository)
        {
            this.repository = repository;
        }

        public ICollection<Quiz> GetQuizzesByOwner(User owner)
        {
            return repository.FindQuizzesByOwner(owner);
        }
    }
}
